package com.neuralnoise.hibernate.facebook;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

@MappedSuperclass
public abstract class AbstractFacebookType implements java.io.Serializable {

	private static final long serialVersionUID = -7868078685680062669L;

	private String id;
	private String name;
	
	public AbstractFacebookType() { }
	
	public AbstractFacebookType(String id) {
		this.setId(id);
	}
	
	public AbstractFacebookType(String id, String name) {
		this.setId(id);
		this.setName(name);
	}

	@Id
	@Column(name = "id", nullable = false, length = 32)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "name", nullable = true, length = 256)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
